package com.atguigu.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

/**
 * 体验缓存的步骤：
 * 1.开启基于注解的缓存@EnableCaching
 * 2.标注缓存注解即可
 */
@MapperScan("com.atguigu.springboot.mapper")
@SpringBootApplication
@EnableCaching
public class SpringBoot08CacheApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBoot08CacheApplication.class, args);
    }

}
